Working Of Beam Sensor